package cn.pinming.chyn.tools.utils;

import cn.pinming.chyn.tools.entity.PmDate;

public class TestMain {

	public static void main(String[] args) {
		/*
		PmDate data = new PmDate() ;
		System.out.println(data.formatDate());
		System.out.println(data.formatDateTime());
		System.out.println(data.beginOfDay().formatDateTime());
		System.out.println(data.endOfDay().formatDateTime());
		
		System.out.println(data.yesterday().formatDate());
		System.out.println(data.yesterday().formatDateTime());
		
		System.out.println(data.tomorrow().formatDate());
		System.out.println(data.tomorrow().formatDateTime());
		
		System.out.println(data.beginOfMonth());
		System.out.println(data.endOfMonth());
		
		System.out.println(data.beginOfYear());
		System.out.println(data.endOfYear());
		*/
	
		/*
		DbFactory db1 = new DbFactory(
				"jdbc:mysql://172.16.26.211:3306/government_supervise_platform_nantong", 
				"root", 
				"Mysql666!") ;
				
		DbFactory db2 = new DbFactory(
				"jdbc:mysql://172.16.26.211:3306/government_supervise_platform_jinhua", 
				"root", 
				"Mysql666!") ;		
				
		String sql = "SELECT COUNT(1) AS 'val' FROM f_user" ;
		System.out.println(db1.queryOne(sql).getInt("val"));
		System.out.println(db2.queryOne(sql).getInt("val"));
		
		db1.close();
		db2.close();
		*/
		
		System.out.println(StringTools.firstLower("AABBCC"));
		System.out.println(StringTools.firstUpper("aabbcc"));
		
		System.out.println(StringTools.camelToSnake("aaBbCc"));
		System.out.println(StringTools.snakeToCamel("aa_bb_cc"));
	}
	
	
	
	
}
